﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DTOs;

namespace giftdeliveryservice.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Product/

        public ActionResult List()
        {

            // TO DO KJ : get all products from db

            List<ProductDTO> prdcts = new List<ProductDTO>();

            prdcts.Add(new ProductDTO() { Name = "prd01", Price = 100, ProductCode = "p001" });
            prdcts.Add(new ProductDTO() { Name = "prd02", Price = 200, ProductCode = "p002" });

            return View(prdcts);
        }





    }
}
